#include<stdio.h>
#include<stdlib.h>
int main()
{
	unsigned int i,j;
	float m=4.0;
	j=*(unsigned int *)&m;
//	memcpy(&i,&m,sizeof(int));
	printf("4 float in hex is %x\n",j);
	scanf("%f",&m);
//	memcpy(&i,&m,sizeof(float));
	i=*(unsigned int *)&m;
	printf("value entered in float is %f\n",m);
	printf("hex value of it is %x\n",i);
	i=(i>>23);
	printf("value of mantissa is %u\n",i);
	i/=3;
	i+=85;
	printf("value of mantissa of cuberoot of x is %u\n",i);
	i=i<<23;
	printf("hex value of 3root in float is %x\n",i);
//	memcpy(&m,&i,sizeof(int));
	m=*(float *)&i;
	printf(" approx value of cuberoot if x is %f\n",m);
	return 0;
}
